#pragma once
#include "raw_json_message.h"
#include "driver.h"

class task {

private:
	struct response {};
	struct request {};
	union {
		response res;
		request req;
	}data;
	enum type_of_data { res, req }data_type;

public:

	task(raw_json_message str) {
		data_type = req;
	}

	task() {
		data_type = res;
	}

	task do_work(driver drv) {
		if (data_type == req) {
		}
	}

	raw_json_message res_to_json() {
		if (data_type == res) {

		}
	}

	String get_name(){}
};